body {
    background-color: #f7f7fa;
}

.container{
    padding-bottom: 55px;
    padding-top: 46px;
}

.container a{
    -webkit-tap-highlight-color: transparent;
}

.container a{
    -webkit-tap-highlight-color: transparent;
}

.container a span{
    -webkit-tap-highlight-color: transparent;
}


/*头部*/
.app-header {
    position: fixed;
    height: 45px;
    z-index: 2;
    width: 100%;
    background-color: rgb(255, 98, 97);
    top: 0px;
    /*line-height: 40px;*/
}

.app-header .city {
    font-size: 16px;
    display: inline-block;
    /*height: 40px;*/
    /*line-height: 40px;*/
    fone-family: 'Helvetica', '微软雅黑', serif;
    color: white;
    position: absolute;
    top: 9px;
    margin-left: 5px;
}

.app-header .position {
    height: 25px;
    margin-top: 10px;
    margin-left: 10px;
}

.app-header .title {
    font-size: 19px;
    display: inline-block;
    height: 45px;
    line-height: 45px;
    color: white;
    position: absolute;
    /* top: 9px; */
    left: 100px;
    text-align: center;
    right: 100px;
}

.app-header .me {
    float: right;
    height: 25px;
    margin-top: 10px;
    margin-right: 10px;
    display: none;
}

/*轮播图*/
#carrousel .swiper-container {
    width: 100%;
    height: 100%;
}

#carrousel .swiper-container img {
    width: 100%;
    height: 100%;
}

#carrousel .swiper-container .img_container a {
    display: block;
    height: 100%;
    position: absolute;
}

#carrousel .swiper-container .img_container {
    height: 0px;
    padding-bottom: 32%;
    position: relative;
    display: block;
}


/*搜索*/
/*#search-container {*/
    /*margin-top: 50px;*/
/*}*/

#search-container .search-product-inner {
    margin: 10px 4px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(210, 210, 210);
    height: 35px;
    background-color: #fff;
    border-radius: 4px;
    position: relative;
}

#search-container .search-product-inner .search-icon {
    width: 30px;
    height: 33px;
    float: left;
    line-height: 33px;
}

#search-container .search-product-inner .search-icon img {
    width: 20px;
    height: 20px;
    margin-top: 7px;
    margin-left: 7px;
}

#search-container .search-product-inner .search_input_div {
    position: relative;
    margin-right: 42px;
    /* margin-left: 50px; */
}

#search-container .search-product-inner .search_input_div input {
    width: 100%;
    height: 33px;
    padding: 5px;
    margin: 0;
    line-height: normal;
    font-size: 14px;
    border: 0;
    -webkit-box-flex: 1;
    display: -webkit-box;
    -webkit-appearance: none;
    border-radius: 0;
    outline: 0;
    color: #ccc;
    position: absolute;
    left: 40px;
}

/*热卖商品*/
#sale-hot-container {
    /*margin-bottom: 55px;*/
}

#sale-hot-container .title {
    color: #888;
    height: 30px;
    line-height: 30px;
    font-size: 17px;
    /*width: 98%;*/
    /*margin-left: 1%;*/
    margin: 0px 4px;
    border-bottom: 1px solid #D0D0D0;
}

#sale-hot-container .product-item {
    display: flex;
    margin: 4px 2px 0px 2px;
}

#sale-hot-container .product-item .product-cell {
    width: 33.3333%;
    display: inline-block;
}

#sale-hot-container .product-item .product-cell .product-inner {
    border: 1px solid #D0D0D0;
    margin: 0px 2px;
    background-color: white;
}


#sale-hot-container .product-item .product-cell .product-img {
    position: relative;
    /*left: 1%;*/
    /*设置容器宽高比为1：1*/
    height: 0px;
    padding-bottom: 100%;
    /*width: 116px;*/
    /*height: 116px;*/
}

#sale-hot-container .product-item .product-cell .product-img .product_img_href {
    display: block;
    /*width: 96%;*/
    margin: 0 2px;
}

#sale-hot-container .product-item .product-cell .product-img img {
    width: 100%;
    border-radius: 5px;
    /*	    border-width: 1px;
            border-style: solid;
            border-color: red;*/
}

#sale-hot-container .product-item .product-cell .product-title {
    font-size: 13px;
    line-height: 17px;
    overflow: hidden;
    margin-top: 12px;
    color: #333;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 34px;
    /*padding-left: 2%;*/
    margin: 0px 2px;
}

#sale-hot-container .product-item .product-cell .product-sale {
    height: 30px;
    margin: 0 2px;
    display: flex;
}

#sale-hot-container .product-item .product-cell .product-sale .price {
    width: 50%;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    color: #ff6800;
    overflow: hidden;
    display: block;
}

#sale-hot-container .product-item .product-cell .product-sale .cart {
    width: 50%;
    text-align: right;
    display: block;
}

#sale-hot-container .product-item .product-cell .product-sale .cart img {
    height: 30px;
    width: 30px;
}

/*底部*/
.tabbar {
    position: fixed;
    z-index: 1;
    bottom: 0px;
    width: 100%;
}

.tabbar .weui_tabbar_item[data-info='cart'] .weui_tabbar_icon {
    position: relative;
}

.tabbar #index-product-number {
    position: absolute;
    right: -5px;
    top: -5px;
    display: block;
    width: 18px;
    height: 18px;
    background: #E04848;
    border-radius: 9px;
    text-align: center;
    line-height: 18px;
    color: white;
    font-size: 8px;
}

/*分类*/
#category-container {
    z-index: 3;
    position: fixed;
    width: 100%;
    bottom: 55px;
    height: 100%;
    /*opacity: 0.5;*/
    background-color: rgba(0, 0, 0, .5);
}

#category-container .category-list {
    /*z-index: 2;*/
    max-height: 300px;
    border-top-style: solid;
    border-top-color: #ececec;
    border-top-width: 1px;
    margin-left: 17.5%;
    border-radius: 3px;
    max-height: 40%;
    overflow: auto;
    position: absolute;
    bottom: 0px;
    width: 40%;
    background-color: rgb(245, 245, 245);
}

#category-container .category-list .category-menu {
    height: 40px;
    font-size: 15px;
    line-height: 40px;
    text-align: center;
    width: 90%;
    margin: 0 auto;
    border-bottom: 1px solid #D9D9D9;
}

#category-container .category-list .category-menu a {
    width: 100%;
    display: block;
    text-decoration: none;
    color: #888;
}

#category-container .category-list .category-menu a:active {
    background-color: #C9C9C9;
}

/*购物车*/
#shoppingcart-container {
    position: fixed;
    top: 0px;
    z-index: 3;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
}

#shoppingcart-container .product-info {
    max-height: 300px;
    /*background-color: rgb(245, 245, 245);*/
    position: absolute;
    bottom: 50px;
    width: 100%;
    /*border-style: solid;*/
    /*border-width: 1px;*/
    /*border-color: #c7c7c7;*/
    /*border-radius: 2px;*/
}

#shoppingcart-container .product-info .product-head {
    position: relative;
    height: 50px;
}

#shoppingcart-container .product-info .product-head img{
    height: 50px;
    width: 50px;
}

#shoppingcart-container .product-info .product-head .shopping-cart {
    display: inline-block;
    margin-right: 5px;
    position: absolute;
    right: 0px;
}

#shoppingcart-container .product-info .product-head .product-number {
    width: 20px;
    height: 20px;
    background: #E04848;
    position: absolute;
    right: 2px;
    border-radius: 10px;
    text-align: center;
    line-height: 20px;
    color: white;
    font-size: 10px;
    top: -4px;
}

#shoppingcart-container .product-info #inner-op {
    max-height: 260px;
    overflow: auto;
    background-color: white;
    border-radius: 2px;
}


#shoppingcart-container .product-info .product-cell {
    height: 50px;
    width: 96%;
    background-color: white;
    /* margin: 0 auto; */
    border-bottom: 1px solid #d5d5d6;
    position: relative;
    margin: 0px auto;
}

#shoppingcart-container .product-info .product-cell .title {
    font-size: 14px;
    height: 50px;
    width: 45%;
    line-height: 50px;
    color: #333;
    display: inline-block;
    margin-left: 5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

#shoppingcart-container .product-info .product-cell .price {
    font-size: 15px;
    height: 50px;
    width: 20%;
    line-height: 50px;
    color: rgb(255, 98, 97);
    position: absolute;
    top: 0px;
    left: 48%;
}

#shoppingcart-container .product-info .product-cell .number-update {
    display: inline-block;
    height: 50px;
    position: absolute;
    width: 30%;
    left: 69%;
    text-align: center;
}

#shoppingcart-container .product-info .product-cell .number-update .reduce img {
    height: 30px;
    width: 30px;
    position: absolute;
    top: 10px;
    left: 5px;
}

#shoppingcart-container .product-info .product-cell .number-update .number {
    height: 40px;
    width: 40px;
    display: inline-block;
    text-align: center;
    line-height: 40px;
    margin-top: 5px;
}

#shoppingcart-container .product-info .product-cell .number-update .add img {
    height: 30px;
    width: 30px;
    position: absolute;
    top: 10px;
    right: 5px;
}


#shoppingcart-container .pay-container {
    height: 50px;
    position: fixed;
    bottom: 0px;
    width: 100%;
}

#shoppingcart-container .pay-container .paycost {
    width: 50%;
    height: 50px;
    background-color: #5a5a5a;
    position: absolute;
    top: 0px;
    color: white;
    line-height: 50px;
    padding-left: 5px;
    font-size: 20px;
}

#shoppingcart-container .pay-container .settlement {
    width: 50%;
    height: 50px;
    background-color: rgb(255, 98, 97);
    position: absolute;
    top: 0px;
    left: 50%;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    color: white;
}

/*商品详情*/

#product_base_info {
    border-top: 1px solid #D9D9D9;
    position: relative;
    background-color: #FFFFFF;
    padding: 0px 5px;
}

#product_container #product_base_info .product_title {
    display: block;
    font-size: 20px;
    font-weight: 500;
    display: block;
}

#product_container #product_base_info .product_sale .current_price_label {
    margin-right: 0px;
    font-size: 17px;
    /*font-weight: 400;*/
}

#product_container #product_base_info .product_sale .current_price {
    margin-right: 5px;
    color: red;
    font-size: 17px;
}

#product_container #product_base_info .product_sale .market_price {
    margin-right: 5px;
    text-decoration:line-through;
    color: #999999;
    font-size: 14px;
}

#product_container #product_base_info .product_sale .sale_num {
    margin-right: 5px;
    color: #999999;
    font-size: 14px;
}

#product_show_footer_container{
    height: 50px;
    position: fixed;
    bottom: 0px;
    width: 100%;
    /*background-color: red;*/
    background-color: #f7f7fa;
    border-top: 1px solid #D9D9D9;
}

#product_show_footer_container a {
    display: inline-block;
}

#product_show_footer_container .tabbar_item {
    width: 18%;
    display: inline-block;
    text-align: center;
    padding: 5px 0px;
    background-color: #f7f7fa;
}

#product_show_footer_container img {
    width: 24px;
    height: 24px;
}

#product_show_footer_container .icon {
    height: 24px;
}

#product_show_footer_container .icon #icon_container{
    position: relative;
    display: inline-block;
}

#product_show_footer_container .icon_label {
    margin-top: 2px;
    color: #888;
    font-size: 12px;
    line-height: 14px;
}


#product_show_footer_container #add_shoppingcart {
    width: 32%;
    display: inline-block;
    text-align: center;
    background-color: #5a5a5a;
    font-size: 17px;
    color: white;
    position: absolute;
    top: 0px;
}

#product_show_footer_container #now_buy {
    width: 32%;
    display: inline-block;
    text-align: center;
    background-color: rgb(255, 98, 97);
    position: absolute;
    /*background-color: red;*/
    height: 100%;
    color: white;
    font-size: 17px;
    right: 0px;
}

#product_show_footer_container #add_shoppingcart span{
    height: 50px;
    line-height: 50px;
}

#product_show_footer_container #now_buy span{
    height: 50px;
    line-height: 50px;
}


#product_show_footer_container #go_shoppingcart #index-product-number {
    position: absolute;
    right: -5px;
    top: -5px;
    display: block;
    width: 18px;
    height: 18px;
    background: #E04848;
    border-radius: 9px;
    text-align: center;
    line-height: 18px;
    color: white;
    font-size: 8px;
}


/*头部操作栏*/

#op_header{
    border-bottom: 1px solid #D9D9D9;
    background-color: white;
    position: fixed;
    width: 100%;
    top: 0px;
    height: 45px;
    z-index: 2;
}

#op_header #header_title {
    display: inline-block;
    height: 45px;
    position: absolute;
    left: 45px;
    text-align: center;
    line-height: 45px;
    right: 45px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0px 10px;
}

#op_header #return_icon {
    display: inline-block;
    height: 45px;
    width: 45px;
    /* margin: 5px; */
    /* padding: 5px 5px; */
    position: relative;
}

#op_header #return_icon img{
    height: 25px;
    width: 25px;
    position: absolute;
    left: 10px;
    top: 10px;
}


#op_header #go_index {
    display: inline-block;
    position: absolute;
    right: 0px;
    height: 45px;
    width: 45px;
}

#op_header #go_index img {
    height: 25px;
    width: 25px;
    position: absolute;
    left: 10px;
    top: 10px;
}
